...Portability Isn't Simple
How can we tell the difference between that program and the following?
class NoOS {
   public static void main(String[] args) {
      String os = System.getProperty("os.name");
      if (os.equals("Solaris")) {
         throw new RuntimeException();
      }
   }
}
			

Return to Tracks

Previous | Next